/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-08-15 13:48:03
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-08-22 12:07:35
 * @FilePath: \四阶段项目\src\components\workorder\WorkMenu.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React,{useEffect,useState} from 'react'
import {inject,observer} from 'mobx-react'
import '../../assets/css/workordercss/workMenu.css'
 function WorkMenu(props) {
 
   const getDataList=()=>{
    let currentPage=1
    let pageSize=5
    let processing_status=1
    props.workOrderStore.getDataList(currentPage,pageSize,processing_status)
   }
    
   
  return (
    <div className='WorkMenuDiv'>
    <button>所有工单</button>
    <button onClick={getDataList}>已完成</button>
    <button>处理中</button>
    <button>未处理</button>
    </div>
  )
}
export default inject('workOrderStore')(observer(WorkMenu))
